@model OurWedding1.Models.Wedding
@using OurWedding1

@{
    ViewBag.Title = Resources.Edit;
}

<h2>@ViewBag.Title</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    

    @Html.HiddenFor(model => model.WeddingId)
    @Html.Partial("_CreateOrEdit", Model)

    <p>
        <input type="submit" value="@Resources.Save" />
    </p>
}

<div>
    @Html.ActionLink(Resources.Back_To_List, "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/ckeditor")
    <script>
        $(function () {
            $("input[type=submit]").button();
        });
        
    </script>
}
